package com.ruoyi.infection.service.impl;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.infection.domain.PatientInfo;
import com.ruoyi.infection.mapper.InfectionUploadMapper;
import com.ruoyi.infection.service.InfectionUploadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@DataSource(value = DataSourceType.SLAVE)
public class InfectionUploadServiceImpl implements InfectionUploadService {

    @Autowired
    private InfectionUploadMapper infectionUploadMapper;


    @Override
    public List<PatientInfo> selectPatientInfo() {
        return infectionUploadMapper.selectPatientInfo();
    }
}
